<p><a href="index.php?page=account&action=add">Add</a></p>
<table border="1">
	<tr>
		<th>Mã tài khoản</th>
		<th>Email</th>
		<th>Họ tên</th>
		<th>Địa chỉ</th>
        <th>Điện thoại</th>
		<th>Ngày sinh</th>
		<th>Giới tính</th>
		<th>Ngày tham gia</th>
		<th>Trạng thái</th>
		<th>Đường dẫn ảnh đại diện</th>
        <th colspan="2"><input type="button" name="delete" value="delete"/></th>
	</tr>
	<?php
		$accountDAO = new accountDAO();
		$listAccount = $accountDAO->selectAll();
		
		foreach($listAccount as $acc)
		{
			?>
			<tr>
				<td><?php echo $acc->accId; ?></td>
				<td><?php echo $acc->email; ?></td>
				<td><?php echo $acc->fullname; ?></td>
				<td><?php echo $acc->address; ?></td>
				<td><?php echo $acc->phone; ?></td>
				<td><?php echo $acc->DOB; ?></td>
				<td><?php echo $acc->sex; ?></td>
				<td><?php echo $acc->joinDate; ?></td>
				<td><?php echo $acc->status; ?></td>
                <td><?php echo $acc->avtUrl; ?></td>
                <td><input type="button" name="edit" value="edit"/></td>
                <td><input type="checkbox" name="checkbox_account[]"/></td>						
			</tr>
			<?php	
		}								
	?>
</table>